@model OurWedding1.Models.WeddingPhoto

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>WeddingPhoto</legend>

    <img src="http://res.cloudinary.com/hdq73umpz/image/upload/w_640,h_480,c_fill/@Model.GenerateImageFileName()"/>

    <div class="display-label">Wedding</div>
    <div class="display-field">@(Model.Wedding == null ? "None" : Model.Wedding.Name)</div>
</fieldset>
<p>
    @Html.ActionLink("Back to List", "Index")
</p>


